# https://docs.bazel.build/versions/master/be/c-cpp.html#cc_binary
cc_binary(
    name = "hello_tf",
    srcs = glob(["include/*.h", "src/hello_tf.cpp"]),
    copts = ["-Iinclude", 
    "-I/usr/local/include/tensorflow/bazel-bin/tensorflow/include", 
    "-I/usr/local/include/tensorflow/bazel-bin/tensorflow/include/src",
    ],
    # deps = ["libraries to be linked"],
    linkopts = ["-l/usr/local/lib/libtensorflow_cc.so",
        "-l/usr/local/lib/libtensorflow_cc.so.2",
        ],
)


# https://docs.bazel.build/versions/master/be/c-cpp.html#cc_binary
cc_binary(
    name = "create_tensor",
    srcs = glob(["include/*.h", "src/create_tensor.cpp"]),
    copts = ["-Iinclude", 
    "-I/usr/local/include/tensorflow/bazel-bin/tensorflow/include", 
    "-I/usr/local/include/tensorflow/bazel-bin/tensorflow/include/src",
    ],
    # deps = ["libraries to be linked"],
    linkopts = ["-l/usr/local/lib/libtensorflow_cc.so",
        "-l/usr/local/lib/libtensorflow_cc.so.2",
        ],
)

cc_binary(
    name = "allocate_tensor",
    srcs = glob(["include/*.h", "src/allocate_tensor.cpp"]),
    copts = ["-Iinclude", 
    "-I/usr/local/include/tensorflow/bazel-bin/tensorflow/include", 
    "-I/usr/local/include/tensorflow/bazel-bin/tensorflow/include/src",
    ],
    # deps = ["libraries to be linked"],
    linkopts = ["-l/usr/local/lib/libtensorflow_cc.so",
        "-l/usr/local/lib/libtensorflow_cc.so.2",
        ],
)

cc_binary(
    name = "session_run",
    srcs = glob(["include/*.h", "src/session_run.cpp"]),
    copts = ["-Iinclude", 
    "-I/usr/local/include/tensorflow/bazel-bin/tensorflow/include", 
    "-I/usr/local/include/tensorflow/bazel-bin/tensorflow/include/src",
    ],
    # deps = ["libraries to be linked"],
    linkopts = ["-l/usr/local/lib/libtensorflow_cc.so",
        "-l/usr/local/lib/libtensorflow_cc.so.2",
        ],
)